<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page import="com.linkage.user.pojo.User"  %>
<%
	User user = (User)session.getAttribute("LOGIN_USER_KEY_IN_SESSION");
    request.setAttribute("contextPath", request.getContextPath());
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>确认收货</title>
<script type="text/javascript" src="${contextPath }/js/jquery-1.7.2.js"></script>
	<script type="text/javascript">
	   function check(){
		   var password = $("#password").val();
		   var pwd="<%=user.getPassword()%>"; 
		   if(password == pwd) {
		       $("#form2").submit();
		   }else{
			   alert("校验失败");
		   }
			   }
	</script>

</head>
<body>
<a href="javaScript:history.go(-1)">返回</a>
	<br/><br/>
	<form id="form2" action="/demo/orderController/confirm/${order.orderId}" method="post">
	<tr>
	<td><span class="spanOrderId">订单编号：${order.orderId }</span></td>
	</tr>
	<br><br>
	            <tr> <td>支付密码：</td> 
	              <td><input type="password" value="" name="password" id="password"/></td></tr><br>
	               <input type="button" id="checkBtn"  value="确认收货" onclick="check()"/>
	</form>
</body>
</html>